package com.qys.livesMall.app.user.model.dto.app;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: dp
 * Date: 2023/04/26
 * Time: 17:00
 * DESCRIPTION: 密码修改
 */
@Data
public class PasswordDTO implements Serializable {
    static final long serialVersionUID = 42L;

    @Schema(description = "旧密码")
    private String oldPassword;

    @Schema(description = "新密码")
    @NotBlank
    private String password;

    @Schema(description = "二次输入新密码")
    @NotBlank
    private String rePassword;

    @Schema(description = "类型0登录密码,1支付密码,2店铺提现密码,3主播提现密码,4忘记密码")
    @NotNull
    private Byte type;


    @Schema(description = "用户名")
    private String username;
    /**
     * 忘记密码功 手机号能使用字段
     * ==============================
     */
    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "短信验证码")
    private String smsCode;
    /**
     * 邮件使用字段
     * ==============================
     */
    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "邮箱验证码")
    private String emailCode;
}
